/**
 * Application.java
 */
package com.mht.cfa.server;

import com.mht.cfa.server.config.ApplicationStarter;
import com.mht.cfa.server.contexts.SpringContext;
import org.springframework.stereotype.Component;


@Component
public class Application {

    public static void main(String[] args) {
        try {
            ApplicationStarter.start();
            SpringContext.start(args);
            SpringContext.getBean(Application.class).launch();
        } catch (Exception e) {
            e.printStackTrace();
            System.exit(-1);
        }
    }

    private void launch() {
        start();
    }

    private void start() {

    }

}
